x86emul: use SrcEax/DstEax where suitable for string insns
authorJan Beulich <jbeulich@suse.com>
Mon, 12 Dec 2016 08:41:57 +0000 (09:41 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 12 Dec 2016 08:41:57 +0000 (09:41 +0100)
commitfd3656422f2dd3b8157907f4da9f239386621759
tree65d9d99ccc49d1bf06336547a7d98b6497694ebb
parent7da717ef47953aca6f4b4a5aa5943c31f550965c
x86emul: use SrcEax/DstEax where suitable for string insns

LODS, SCAS, and STOS all use the accumulator as one of their operands.
This avoids some open coding of things, but requires switching around
operands of SCAS.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/x86_emulate/x86_emulate.c